/*  header-comment
/*  file   : info
/*  author : arida
/*  date   : 2017-6-4 18:26:26
/*  last   : 2017-7-2 21:32:37
*/
import { handleActions } from "redux-actions";

// 定义reducer
const reducer = handleActions(
  {
    GET_HOLIDAY: (state, action) => ({
      ...state,
      holidays: action.payload
    }),
    GET_ADMIN_LIST: (state, action) => ({
      ...state,
      admins: action.payload
    })
  },
  {}
);
export default reducer;
